package com.hxkj.service.article;

import com.hxkj.domain.po.Advertisement;
import com.platform.common.domain.result.ResultDataStruct;
import com.platform.common.domain.result.ResultMessageStruct;
import com.platform.common.domain.result.ResultPageStruct;
import com.platform.common.domain.to.PageTo;

import java.util.HashMap;
import java.util.List;

/**
 * 广告管理service
 *chenfanghzou  2018/09/14
 */
public interface AdvertisementService {


    ResultDataStruct<Advertisement> get(Advertisement advertisement) throws Exception;

    ResultMessageStruct save(Advertisement advertisement) throws Exception;

    ResultMessageStruct modify(Advertisement advertisement) throws Exception;

    ResultMessageStruct remove(Advertisement advertisement) throws Exception;

    ResultPageStruct<Advertisement> getListWithPage(Advertisement advertisement, PageTo pageTo) throws Exception;

    List<Advertisement> getList(Advertisement advertisement) throws Exception;

    void modifySortNum(HashMap<String, Object> map) throws Exception;
}
